package site.anxuan.seckill.dao;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import site.anxuan.seckill.entity.ItemStock;

@Mapper
@Repository
public interface ItemStockDao {

    ItemStock getByItemId(int itemId);

    int decreaseStock(int itemId, int amount);

}
